Skip to main content

Guide to deploy on ADP server

Classification API

In your computer

First, you need to build the wheel of python application with the name api_classification in your machine.

important

Application must be named api_classification

warning

Please, delete temporary files you don't want to import (Likes test images)

 

when you are in the local folder (where is setup.py), do

python -m build --wheel 

In the server

Next, you can find your wheel file in ./dist/api_classification-1.0-py3-none-any.whl.

 

Copy this file in /root/api_classification/api_classification-1.0-py3-none-any.whl and do

cd /root/api_classification && source ./env/bin/activate && pip install api_classification-1.0-py3-none-any.whl --force-reinstall

 

restart the service

systemctl restart api_classification.service
note

Don't forget to check everything works correctly : systemctl status api_classification.service

 

Website Front-End - VueJS

In your computer

In the local folder, do

npm i && npm run build

In the server

copy and overwrite all files in your dist folder to the /var/www/html on server

 

Website Back-End - Spring Boot

Copy and overwrite the project folder to /root/backend on server. Next, restart service

systemctl restart backend.service
note

Don't forget to check everything works correctly : systemctl status backend.service

 

Complementary information

  • Service files is in /etc/systemd/system/